package com.example;

public class TaughtCourse {
    private int id;
    private String teacherUsername;
    private String courseName;
    private String semester;

    public TaughtCourse(int id, String teacherUsername, String courseName, String semester) {
        this.id = id;
        this.teacherUsername = teacherUsername;
        this.courseName = courseName;
        this.semester = semester;
    }

    // Getters
    public int getId() { return id; }
    public String getTeacherUsername() { return teacherUsername; }
    public String getCourseName() { return courseName; }
    public String getSemester() { return semester; }

    // Setters (optional)
    public void setId(int id) { this.id = id; }
    public void setTeacherUsername(String teacherUsername) { this.teacherUsername = teacherUsername; }
    public void setCourseName(String courseName) { this.courseName = courseName; }
    public void setSemester(String semester) { this.semester = semester; }

    @Override
    public String toString() {
        return "TaughtCourse{" +
               "id=" + id +
               ", teacherUsername='" + teacherUsername + '\'' +
               ", courseName='" + courseName + '\'' +
               ", semester='" + semester + '\'' +
               '}';
    }
} 